package tr.edu.yildiz.ce.app_manager.ui.action.menu;

import java.util.List;

import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Table;

import tr.edu.yildiz.ce.app_manager.model.AppProxy;
import tr.edu.yildiz.ce.app_manager.model.Application;
import tr.edu.yildiz.ce.app_manager.ui.AppManagerApplication;
import tr.edu.yildiz.ce.app_manager.ui.action.table.ApplicationTableSelectAction;
import tr.edu.yildiz.ce.app_manager.ui.action.table.ProxyTableSelectAction;
import tr.edu.yildiz.ce.app_manager.ui.components.form.ApplicationForm;
import tr.edu.yildiz.ce.app_manager.ui.components.table.ApplicationTableForm;

public class ApplicationAction extends MenuAction{

	public ApplicationAction(AppManagerApplication app) {
		super(app);
	}
	
	@Override
	public void doAction() {
		final ApplicationForm applicationForm = new ApplicationForm(new Application(), app);
		app.getMainLayout().setForm(applicationForm);
		ApplicationTableForm atForm = new ApplicationTableForm(app);
		app.getMainLayout().setTable(atForm);
		
	}

}
